var forge = require('node-forge');



/**
 * phone:15227992049
aes key:48AF25A76625624FF03012A34B021D39
encode phone:3EEE2502F5F21AD0F733459CE0B20C75
cid:110108198504216314
encode cid:9DB201391941469CA95B80DB386AEF5E804B52C67A037E8D3DFE5141450AB0F7
sign Content is channelId=ysf1&cid=9DB201391941469CA95B80DB386AEF5E804B52C67A037E8D3DFE5141450AB0F7
&phone=3EEE2502F5F21AD0F733459CE0B20C75&platform=1&timestamp=1532327676887
md5 sign is eace3e2091183f9ab4196d2c2cde455c
decode phone:15227992049
decode cid:110108198504216314
request body: {"phone":"3EEE2502F5F21AD0F733459CE0B20C75","sign":"eace3e2091183f9ab4196d2c2cde455c","channelId":"ysf1",
"platform":"1","cid":"9DB201391941469CA95B80DB386AEF5E804B52C67A037E8D3DFE5141450AB0F7","timestamp":"1532327676887"}
 */
//对密码MD5加密

let a = 'channelId=ysf1&cid=9DB201391941469CA95B80DB386AEF5E804B52C67A037E8D3DFE5141450AB0F7&phone=3EEE2502F5F21AD0F733459CE0B20C75&platform=1&timestamp=1532327676887';
let md = forge.md.md5.create();
md.update(a);
let password = md.digest().toHex();
console.log('my md5 sign is ' + password);
//md5 sign is eace3e2091183f9ab4196d2c2cde455c
//my md5 sign is eace3e2091183f9ab4196d2c2cde455c
